package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.VoiceMapper;
import com.ruoyi.control.domain.Voice;
import com.ruoyi.control.service.IVoiceService;

/**
 * 播报信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-26
 */
@Service
public class VoiceServiceImpl extends ServiceImpl<VoiceMapper, Voice> implements IVoiceService //修改
{
    @Autowired
    private VoiceMapper voiceMapper;

    /**
     * 查询播报信息
     * 
     * @param id 播报信息主键
     * @return 播报信息
     */
    @Override
    public Voice selectVoiceById(String id)
    {
        return voiceMapper.selectVoiceById(id);
    }

    /**
     * 查询播报信息列表
     * 
     * @param voice 播报信息
     * @return 播报信息
     */
    @Override
    public List<Voice> selectVoiceList(Voice voice)
    {
        return voiceMapper.selectVoiceList(voice);
    }

    /**
     * 新增播报信息
     * 
     * @param voice 播报信息
     * @return 结果
     */
    @Override
    public int insertVoice(Voice voice)
    {
        return voiceMapper.insertVoice(voice);
    }

    /**
     * 修改播报信息
     * 
     * @param voice 播报信息
     * @return 结果
     */
    @Override
    public int updateVoice(Voice voice)
    {
        return voiceMapper.updateVoice(voice);
    }

    /**
     * 批量删除播报信息
     * 
     * @param ids 需要删除的播报信息主键
     * @return 结果
     */
    @Override
    public int deleteVoiceByIds(String[] ids)
    {
        return voiceMapper.deleteVoiceByIds(ids);
    }

    /**
     * 删除播报信息信息
     * 
     * @param id 播报信息主键
     * @return 结果
     */
    @Override
    public int deleteVoiceById(String id)
    {
        return voiceMapper.deleteVoiceById(id);
    }
}
